package com.example.demospringmybatisplus.processors;

import java.util.List;

import com.example.demospringmybatisplus.processInterface.IDataProcessor;
import com.example.demospringmybatisplus.vo.BaseDataVo;
import com.example.demospringmybatisplus.vo.SearchVo;

/**
 * 抽象处理类
 *
 * @DATE 2024/5/3
 **/
public abstract class AbstractDataProcessor implements IDataProcessor {

    @Override
    public List<? extends BaseDataVo> findList(SearchVo searchVo, String tableName) {
        return findPagedList(searchVo,tableName);
    }

    // 这里定义模板方法，执行具体的processor
    protected abstract List<? extends BaseDataVo> findPagedList(SearchVo searchVo, String tableName);
}
